package com.hw.model.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hw.model.dto.overview.PatientDetailedQueryDTO;
import com.hw.model.entity.OssPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hw.model.vo.overview.OssInfoVO;
import com.hw.model.vo.overview.PatientDataDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * oss文件上传mapper
 * @author 作者
 * @since 2022-11-24
 */
@Component
@Mapper
public interface OssMapper extends BaseMapper<OssPO> {
    /**
     * 孩子数据统计明细
     * @param page
     * @param patientDetailedQueryDTO
     * @return
     */
    Page<PatientDataDetailVO> patientDataDetail(Page page, @Param("patientDetailQuery") PatientDetailedQueryDTO patientDetailedQueryDTO);

    /**
     * @descrition 获取oss信息
     * @author lipeng
     * @date 2023/3/9
     * @param filename
     * @return java.util.List<com.hw.model.vo.overview.OssInfoVO>
     */
    List<OssInfoVO> getOssInfoByFilename(@Param("filename") String filename);
}
